<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
	<div class="row">
		<?php echo $form->textField($model,'title',array('size'=>45,'maxlength'=>45)); ?>
        </div>
    <div class="row">
    <?php echo $form->dropDownList($model,'category_id', 
            CHtml::listData(Category::model()->findAll(), 'category_id', 'title'), 
            array('empty'=>'All Category')); 
    ?>
    <?php echo $form->dropDownList($model,'county_id', 
            CHtml::listData(Region::model()->findAll(), 'id', 'name'), 
            array('empty'=>'Select City')); 
    ?>
    <?php echo $form->dropDownList($model,'municipality_id', 
	CHtml::listData(Area::model()->findAll(), 'id', 'name'), 
	array('empty'=>'Select Area')); 
   ?>
   <?php echo $form->dropDownList($model, 'orderID',$model->getOrderOptions()); ?>
   <?php echo CHtml::submitButton('Search'); ?>
   </div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->